package com.nuc.workflowserver.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.nuc.workflowserver.mapper.IAdminMapper;
import com.nuc.workflowserver.model.pojo.Admin;
import com.nuc.workflowserver.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IAdminServiceImpl implements IAdminService {

    @Autowired
    IAdminMapper iAdminMapper;

    @Override
    public PageInfo<Admin> selectPage(Admin o, Integer pageNum,
            Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<Admin> list = iAdminMapper.selectList(o);
        PageInfo<Admin> page = new PageInfo<Admin>(list);
        return page;
    }

    @Override
    public Admin selectByPrimary(Admin admin) {
        return null;
    }

    @Override
    public Integer update(Admin admin) {
        return null;
    }

    @Override
    public Integer delete(Admin admin) {
        return null;
    }

    @Override
    public List<Admin> selectList(Admin admin) {
        return null;
    }

    @Override
    public Integer insert(Admin admin) {
        return null;
    }
}
